﻿@model GameCode.Models.Admin.AndroidAppModel
@{
    ViewBag.Title = "游戏特权 - 安卓应用管理";
    Model.Caption = "安卓应用管理";
    Model.NewLink = "/Admin/AndroidAppEdit";
    Layout = "~/Views/Shared/_AdminLayout.cshtml";
}
@using (Html.BeginForm(new { act = "submit" }))
{
    var grid = new WebGrid(source: Model.List, rowsPerPage: 30);
    @grid.GetHtml(
        htmlAttributes: new { cellpadding = "0", cellspacing = "0" },
        headerStyle: "ui-li ui-li-divider ui-btn ui-bar-a ui-btn-hover-undefined ui-btn-up-undefined",
    columns: grid.Columns
        (
            grid.Column("Version", "版本号"),
            grid.Column("Link", "下载链接"),
            grid.Column(header: "编辑",format: (item) => Html.ActionLink("编辑", "AndroidAppEdit", new { id = item.Id }), canSort: false),
            grid.Column(header: "删除", format: (item) => Html.ActionLink("删除", "AndroidAppDelete", new { id = item.Id }), canSort: false)
        )
    )
}